package io.mft.as.adapter.tester;

import com.thinkive.server.test.SimpleContextImpl;
import com.thinkive.server.test.SimpleRequestImpl;
import com.thinkive.server.test.SimpleResponseImpl;

import junit.framework.TestCase;

public abstract class BaseTest extends TestCase{

	protected SimpleContextImpl context = null;

	protected SimpleRequestImpl request = null;

	protected SimpleResponseImpl response = null;

	public BaseTest() {
		context = new SimpleContextImpl();
		request = new SimpleRequestImpl();
		response = new SimpleResponseImpl();
		context.setRequest(request);
		context.setResponse(response);
		
	}

	protected SimpleContextImpl getContext() {
		return context;
	}

	protected SimpleRequestImpl getRequest() {
		return request;
	}

	protected SimpleResponseImpl getResponse() {
		return response;
	}

	public void setFuncNo(int funcNo) {
		request.setFuncNo(funcNo);
	}
	public abstract void testInvoke();
}
